home *** CD-ROM | disk | FTP | other *** search
- // $TEXTURE1
- // $TEX1OPTIONSFILE
- // $DIRT
- // $DIRTOPTIONSFILE
- // $BROKEN
- // $BROKENOPTIONSFILE
- // $SPECPOW
- // $REFL_STRENGTH
- // $CULLING
-
-
- Shader()
- {
- ShaderQuality(5)
- Pass()
- {
- //lighting()
-
- VertexShader("CarGB_CmCd_Bump_ps20.vsh")
- Pixelshader("CarGB_CmCd_Bump_ps20.psh")
-
- !include("__tex1.mtt")
- !include("__Dirt.mtt")
- !include("__CloudsVS.mtt")
- !include("__TerrainColormapVS.mtt")
- // !include("__TerrainColormapSmallVS.mtt")
- // !include("__DynamicCubeMap.mtt")
- !include("__CubeMap.mtt")
- !include("__DirtNormalsMap.mtt")
- !include("__Broken.mtt")
-
- TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
-
- !include(BFUNC)
- }
- sortweight("depth_sorted")
- Cull(CULLING)
- }
-
-
- shader()
- {
- ShaderQuality(3)
- pass()
- {
- //Lighting()
- Pixelshader("CarGB_CmCd_ps14.psh")
- Vertexshader("CarGB_CmCd_ps14.vsh")
-
- !include("__tex1.mtt")
- !include("__Dirt.mtt")
- !include("__TerrainColormapVS.mtt")
- // !include("__TerrainColormapSmallVS.mtt")
- !include("__CloudsVS.mtt")
- // !include("__DynamicCubeMap.mtt")
- !include("__CubeMap.mtt")
- !include("__Broken.mtt")
-
- TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // A - dirt level
-
- !include(BFUNC)
- }
- sortweight("depth_sorted")
- Cull(CULLING)
- }
-
-
- shader()
- {
- ShaderQuality(2)
- pass()
- {
- //Lighting()
- Pixelshader("CarG_Cm_ps11.psh")
- Vertexshader("CarG_Cm_ps11.vsh")
-
- !include("__tex1.mtt")
- !include("__Dirt.mtt")
- !include("__TerrainColormapSmallVS.mtt")
- // !include("__DynamicCubeMap.mtt")
- !include("__CubeMap.mtt")
-
- TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
-
- !include(BFUNC)
- }
- pass()
- {
- //Lighting()
- Pixelshader("CarGB_pass2_ps11.psh")
- Vertexshader("CarGB_pass2_ps11.vsh")
-
- !include("__Broken.mtt")
- !include("__TerrainColormapSmallVS.mtt")
-
- BlendFunc("one", "one")
- }
-
- sortweight("depth_sorted")
- Cull(CULLING)
- }
-
-
-
- shader()
- {
- ShaderQuality(1)
- pass()
- {
- Pixelshader("CarGB_ps11.psh")
- Vertexshader("CarGB_ps11.vsh")
-
- !include("__tex1.mtt")
- !include("__Dirt.mtt")
- !include("__TerrainColormapSmallVS.mtt")
- !include("__Broken.mtt")
-
- TFactor(0.0, 0.0, REFL_STRENGTH, 1.0)
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0) // B - refl strength, A - dirt level
-
- !include(BFUNC)
- }
-
- sortweight("depth_sorted")
- Cull(CULLING)
- }
-
-
- //=========================== GF2 ======================================
- shader()
- {
- ShaderQuality(2)
- pass()
- {
- Lighting()
- tmu()
- {
- Texture()
- {
- Mapchannel(0)
- Image(TEXTURE1)
- !include(TEX1OPTIONSFILE)
- }
- ColorOp("mul", "current", "texture", "current")
- AlphaOp("arg1", "texture_a", "current", "current")
- }
- AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
- DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
- SpecularColor(%sunvisibility, %sunvisibility, %sunvisibility, 1.000)
- EmissiveColor(0.0, 0.0, 0.0, 1.000)
- SpecularPow(SPECPOW)
- BlendFunc("one", "inv_src_alpha")
-
- }
- pass()
- {
- Lighting()
- tmu()
- {
- Texture()
- {
- Mapchannel(0)
- Image(DIRT_GF2)
- !include(DIRTOPTIONSFILE)
- }
- ColorOp("mul", "tfactor", "current", "current")
- AlphaOp("mul", "tfactor_a", "texture_a", "current")
- }
- tfactor(%dirtcolor_r, %dirtcolor_g, %dirtcolor_b, 1.0)
- colorgen("tfactor", "none", 0,0,0, "user", 0,0,0)
-
- AmbientColor(%daycolor_a, %daycolor_a, %daycolor_a, 1.000)
- DiffuseColor(%daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a)
- SpecularColor(0.0, 0.0, 0.0, 1.000)
- EmissiveColor(0.0, 0.0, 0.0, 1.000)
- SpecularPow(0.0)
- BlendFunc("src_alpha", "inv_src_alpha")
- }
- pass()
- {
- Lighting()
- !include("__Broken.mtt")
-
- !include("__LightningColorsSpecGF2.mtt")
- BlendFunc("one", "one")
- }
-
- pass()
- {
- Lighting()
- tmu()
- {
- TexGen("planar")
- TexMod("scale", "const", 0.00001, 0, 0, "const", 0.00001, 0, 0)
- texture()
- {
- Image(%colortexturesmall)
- addressfunc("clamp", "clamp", "clamp")
- }
- ColorOp("arg1", "tfactor", "current", "diffuse_a")
- AlphaOp("add", "texture_a", "tfactor_a", "current")
- }
-
- tmu()
- {
- ColorOp("arg1", "current", "texture", "current")
- AlphaOp("add", "current", "diffuse_a", "current")
- }
-
- tfactor(0.0, 0.0, 0.0, %daycolor_a)
-
- AmbientColor(0.0, 0.0, 0.0, 1.000)
- DiffuseColor(0.0, 0.0, 0.0, 0.3)
- SpecularColor(0.0, 0.0, 0.0, 1.000)
- EmissiveColor(0.0, 0.0, 0.0, 1.000)
- SpecularPow(0.0)
-
- BlendFunc("inv_src_alpha", "src_alpha")
-
-
- }
- // odremowac po poprawce kuby ( liczba passow)
- lightpass()
- !include("spot_spotmap.mtt")
-
- sortweight("depth_sorted")
- Cull(CULLING)
- }
- //=======================================================
- /*
- shader()
- {
- ShaderQuality(0)
- pass()
- {
- Lighting()
- Pixelshader("CarGB_sq0.psh")
- Vertexshader("Common_specular.vsh")
- !include("__tex1.mtt")
- !include("__Broken.mtt")
- !include(BFUNC)
- }
- sortweight("depth_sorted")
- Cull(CULLING)
- }
- */
- shader()
- {
- ShaderQuality(0)
- pass()
- {
- Lighting()
- !include("__tex1.mtt")
-
- !include("__LightningColorsSpecGF2.mtt")
- !include(BFUNC)
- }
- pass()
- {
- Lighting()
- !include("__Broken.mtt")
-
- !include("__LightningColorsSpecGF2.mtt")
- BlendFunc("one", "one")
- }
- // lightpass()
- // !include("spot_spotmap.mtt")
- sortweight("depth_sorted")
- Cull(CULLING)
- }
-
-